import request from '@/utils/request'

// 查询用户账号列表
export function listSysUserAccount(query) {
  return request({
    url: '/system/sysUserAccount/list',
    method: 'get',
    params: query
  })
}

// 查询用户账号详细
export function getSysUserAccount(id) {
  return request({
    url: '/system/sysUserAccount/' + id,
    method: 'get'
  })
}

// 新增用户账号
export function addSysUserAccount(data) {
  return request({
    url: '/system/sysUserAccount',
    method: 'post',
    data: data
  })
}

// 修改用户账号
export function updateSysUserAccount(data) {
  return request({
    url: '/system/sysUserAccount',
    method: 'put',
    data: data
  })
}

// 删除用户账号
export function delSysUserAccount(id) {
  return request({
    url: '/system/sysUserAccount/' + id,
    method: 'delete'
  })
}
